<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/header::common-head">
    <!--<#include "../common/header.html">-->
</head>
<body>
<!--边栏-->
<!--<#include "../common/nav.html">-->
<div th:replace="admin/common/nav::common-nav" ></div>
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/js/bootstrap.min.js"></script>

<div class="content-wrapper" style="width: auto">
    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <form role="form" action="/fashionpress/img/add" enctype="multipart/form-data" method="post" >
                    <div class="form-group" th:if="${imgStauts=='展示'}">
                        <input type="file" name="file" >
                        <div><input type="hidden" th:value="${imgStauts}" name="imgStatus"/></div>
                    </div>
                    <div class="form-group" th:if="${imgStauts=='详情'}">
                        <input type="file" name="file" multiple="multiple">
                        <div><input type="hidden" th:value="${imgStauts}" name="imgStatus"/></div>
                    </div>
                    <div class="form-group">
<!--                        <label for="productName">所属商品</label><input type="text" class="form-control" id="productName" name="productName" th:value="${formimg.productName}"></input>-->
                        <label for="product_name">所属商品:</label><td class="form-control" id="product_name" name="imgStatus" th:text="${formimg.productName}"></td>
                        <div><input type="hidden" th:value="${formimg!=null?formimg.productId:''}" name="productId"/></div>
                    </div>
                    <div class="form-group">
                        <label for="imgStatus">图片状态:</label>
                        <td class="form-control" id="imgStatus" name="imgStatus" th:text="${imgStauts=='展示'?'展示图片':'详情图片'}"></td>
                    </div>
                    <div class="checkbox">
                    </div> <button type="submit" class="btn btn-default">提交</button>
                </form>
            </div>
        </div>
    </div>


    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</div>
<div th:replace="admin/common/footer::common-footer"></div>
</body>
</html>